package com.freesky.biz.rights.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.freesky.common.annotation.Desensitized;
import com.freesky.common.core.domain.BaseEntity;
import lombok.Data;

import java.util.HashMap;
import java.util.Map;

@Data
@TableName("tec_rights_ques_record")
public class RightsQuesRecordEntity implements java.io.Serializable {
    @TableId
    private String recordId;
    //业务编号
    private String busiId;
    private String busiName;
    private String custId;

    @Desensitized(type = Desensitized.DesensitizedType.PHONE)
    private String mobile;

    private String accordFlag;
    private String useFlag;
    private String receiveId;
    private String answerDetail;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private String createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private String updateTime;
    private String delFlag;

    @TableField(exist = false)
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private Map<String, Object> params;

    public Map<String, Object> getParams()
    {
        if (params == null)
        {
            params = new HashMap<>();
        }
        return params;
    }

    public void setParams(Map<String, Object> params)
    {
        this.params = params;
    }
}